package com.sarnath.sardoop.modules.sys.filter;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * 禁用session
 * @author yingc
 */
public class PreventSessionListener implements HttpSessionListener {

	@Override
	public void sessionCreated(HttpSessionEvent arg0) {
		throw new IllegalStateException("Session use is forbidden");
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent arg0) {
		throw new IllegalStateException("Session use is forbidden");
	}

}
